<link href="./assets/admin/css/schedule/css/schedule.css"
	rel="stylesheet" type="text/css" />
<body>
	<div class="portlet" style="margin-bottom: -10px;">
	</div>
	<div class='schedule-meta'>
		<div class='schedule-legend'>
			<ul>
				<li class='status-item status-free' title='点位空闲'>空闲</li>
				<li class='status-item status-workOff' title='点位售出'>售出</li>
				<li class='status-item status-published' title='点位已上刊'>已上刊</li>
				<li class='status-item status-locked' title='点位锁定'>锁定</li>
			</ul>
		</div>
	</div>
	<div class='schedule-list-content ui-ctrl ui-panel'>
		<div class='schedule-list-panel'>
			<div class='date-field'>
				<a ng-click="query(resourceId,-1,1)" style="text-decoration: none"
					class="prev-year ui-ctrl ui-button active">{{lastYear}}
				</a>
				<a ng-click="query(resourceId,1,1)" style="text-decoration: none"
					class="next-year ui-ctrl ui-button active">{{nextYear}}
				</a>
				<div class="col-md-4">
					<select class="form-control" ng-model="scheduleModal.month"
						style="margin: -2px -2px 0px 10px; font-size: 12px; width: 100px; height: 27px; color: #565353; border: 0px; background-color: #eee"
						ng-change="monthChange(resourceId)"
						ng-options="opt for opt in months">
					</select>
				</div>
			</div>
					<div class="ui-table-head">
						<div class="ui-ctrl ui-panel">
							<table width="100%">
								<tbody>
									<tr ng-show="resourceParentType == '1'">
										<th class="ui-table-cell" style="width: 25%;"><div class='ui-table-hcell-text' style="text-align: center;">资源编号</div></th>
										<th class="ui-table-cell" style="width: 25%;"><div class='ui-table-hcell-text' style="text-align: center;">车牌号</div></th>
										<th class="ui-table-cell" style="width: 25%;"><div class='ui-table-hcell-text' style="text-align: center;">自编号</div></th>
										<th class="ui-table-cell" style="width: 25%;"><div class='ui-table-hcell-text' style="text-align: center;">线路</div></th>
									</tr>
									<tr ng-show="resourceParentType == '2'">
										<th class="ui-table-cell" style="width: 25%;"><div class='ui-table-hcell-text' style="text-align: center;">资源编号</div></th>
										<th class="ui-table-cell" style="width: 25%;"><div class='ui-table-hcell-text' style="text-align: center;">站点</div></th>
										<th class="ui-table-cell" style="width: 25%;"><div class='ui-table-hcell-text' style="text-align: center;">街道</div></th>
										<th class="ui-table-cell" style="width: 25%;"><div class='ui-table-hcell-text' style="text-align: center;">行向</div></th>
									</tr>
								</tbody>
							</table>
						</div>
					</div>
					<div class="ui-table-body " ng-show="resourceParentType == '1'">
							<div class="ui-table-row" ng-repeat="data in dataArray">
								<table width="100%">
									<tbody>
										<tr style="color: {{data.status == '0' ? 'gray' :'' }}" >
											<td class="ui-table-cell" style="width: 25%;">
												<div class='ui-table-cell-text' style="text-align: center;">
													{{data.resourceCode}}
												</div>
											</td>
											<td class="ui-table-cell" style="width: 25%;">
												<div class='ui-table-cell-text' style="text-align: center;">
													{{data.plateNo}}
												</div>
											</td>
											<td class="ui-table-cell" style="width: 25%;">
												<div class='ui-table-cell-text' style="text-align: center;">
													{{data.vehicleNo}}
												</div>
											</td>
											<td class="ui-table-cell" style="width: 25%;">
												<div class='ui-table-cell-text' style="text-align: center;">
													{{data.lineNo}}
												</div>
											</td>
										</tr>
									</tbody>
								</table>
							</div>
						</div>
						<div class="ui-table-body " ng-show="resourceParentType == '2'">
							<div class="ui-table-row" ng-repeat="data in dataArray">
								<table width="100%">
									<tbody>
										<tr style="color: {{data.status == '0' ? 'gray' :'' }}" >
											<td class="ui-table-cell" style="width: 25%;">
												<div class='ui-table-cell-text' style="text-align: center;">
													{{data.resourceCode}}
												</div>
											</td>
											<td class="ui-table-cell" style="width: 25%;">
												<div class='ui-table-cell-text' style="text-align: center;">
													{{data.stopName}}
												</div>
											</td>
											<td class="ui-table-cell" style="width: 25%;">
												<div class='ui-table-cell-text' style="text-align: center;">
													{{data.roadName}}
												</div>
											</td>
											<td class="ui-table-cell" style="width: 25%;">
												<div class='ui-table-cell-text' style="text-align: center;">
													{{data.direction}}
												</div>
											</td>
										</tr>
									</tbody>
								</table>
							</div>
						</div>
		</div>
		<div class='schedule-graphic-panel'>
			<div class='date-field' style="width: 540px;">
				<a ng-click="query(resourceId,-1,2)" style="text-decoration: none"
					class="prev-month ui-ctrl ui-button active">上一月</a><a
					ng-click="query(resourceId,1,2)" style="text-decoration: none"
					class="next-month ui-ctrl ui-button active">下一月</a><strong>{{scheduleModal.month}}</strong>
			</div>
			<div class='ui-ctrl ui-scheduletable' style="width: 540px;">
				<div>
					<div class="ui-table-head ">
						<table width="100%">
							<tbody>
								<tr>
									<th class="ui-scheduletable-head-item" ng-repeat="day in days"><span style="text-align: center">{{day.dayOfWeek}}</span></th>
								</tr>
							</tbody>
						</table>
					</div>
				</div>
				<div class="ui-table-head " style="height: 27px">
					<table width="100%">
						<tbody>
							<tr>
								<th class="ui-scheduletable-head-item" ng-repeat="day in days"><div>{{day.dayOfMonth}}</div></th>
							</tr>
						</tbody>
					</table>
				</div>
				<div class="ui-table-body">
					<div class="ui-ctrl ui-panel">
						<div ng-repeat="data in dataArray">
							<div class="ui-table-row-no-bottom" ng-if="!$last">
								<table width="100%">
									<tbody>
										<tr>
											<td paiqi="0" dw-id={{data.resourceId}}
												date={{schedule.date}}
												ng-repeat="schedule in data.scheduleArray"
												class="ui-scheduletable-item {{schedule.status}}" ></td>
										</tr>
									</tbody>
								</table>
							</div>
							<div class="ui-table-row" ng-if="$last">
								<table width="100%">
									<tbody>
										<tr>
											<td paiqi="0" dw-id={{data.resourceId}}
												date={{schedule.date}}
												ng-repeat="schedule in data.scheduleArray"
												class="ui-scheduletable-item {{schedule.status}}" ></td>
										</tr>
									</tbody>
								</table>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>
